<template>
  <div>
     <el-date-picker
              v-model="endtime"
              type="datetime"
              placeholder="请选择"
               format="yyyy-MM-dd HH:mm:ss"
             value-format="yyyy-MM-dd HH:mm:ss"
             @change="dataChange"
            >
            </el-date-picker>
  </div>
</template>

<script>
export default {
     data(){
      return {
        endtime:''
      }
     },
    methods:{
      dataChange(data){
         this.$emit('dataChange',this.endtime)
      }
    }
}
</script>

<style>

</style>